package cn.jiyun.job;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class DemoJob {

    @Scheduled(cron = "0/3 * * * * ?")
    public void scheduleDemo(){
        log.debug("定时任务执行了");
    }
}
